package com.hmall.api.client;


import com.hmall.api.po.Order;

import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value="trade-service")
public interface OrderClient {



    // 新增：根据ID更新订单信息（适配updateById功能）
    @Operation(description = "根据ID更新订单")
    @PutMapping("/orders")
     boolean updateById(@RequestBody Order order) ;

}
